<%@ page import="com.apexedu.identity.entity.TSysMenu" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
    List<TSysMenu> mrfw1 = (List<TSysMenu>) request.getAttribute("mrfw1");
    List<TSysMenu> mrfw2 = (List<TSysMenu>) request.getAttribute("mrfw2");
    List<TSysMenu> dyfw = (List<TSysMenu>) request.getAttribute("dyfw");
%>
<html>
<head>
    <title>上海工会管理职业学院</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>

<div id="main">
    <jsp:include page="head.jsp"/>
    <script>
        $(function(){
            $(".titleLi:eq(1)").addClass("select");
        })
    </script>
    <div id="content">
        <div id="contentSub" style="height: 210px;padding-bottom: 341px;">
            <div id="contentTr1" style="height: 230px;">
                <div id="hyjy" class="lbxx">
                    <div class="lbxxtitle">
                        <ul>
                            <li class="select" h="${basePath}/s/uc/mh/l/oa/10?t=">会议纪要</li>
                        </ul>
                        <span class="turnSpan">
                            <label class="moreLabel"> 更多 </label>
				        </span>
                    </div>
                    <div class="lbxxcontent" style="height: 160px;">
                        <ul class="select">
                            <c:forEach items="${hyjy}" var="lbxx">
                                <li onclick="window.open('${basePath}/s/uc/mh/no/oa/${lbxx.id}')">
                                    <span class="lbxxContentSpan" title="${lbxx.title}">${lbxx.title}
                                            <c:if test="${lbxx.isnew}">
                                                <img src="${basePath}/resources/images/new.gif"/>
                                            </c:if>
                                    </span>
                                    <span class="lbxxTimeSpan">
                                        <fmt:formatDate value="${lbxx.time}" pattern="yyyy-MM-dd"/>
                                    </span>
                                </li>
                            </c:forEach>
                        </ul>
                    </div>
                </div>
                <div id="mrfw1">
                    <% for (int i = 0; i < mrfw1.size(); i++) {
                        TSysMenu menu = mrfw1.get(i);
                    %>
                    <div class="server" menuid="<%=menu.getMenuid()%>"
                         style="<%if (i > 2) {%>display:none;<%} if(i<=1){%>margin-bottom:10px;<%}%>">
                        <div class="servericon" style="background-color: #FFFFFF;"
                             onclick="window.open('<%=menu.getMenupath()%>')"><img
                                src="${basePath}/resources/images/icons/blue/<%=menu.getTb()%>"
                                onerror="this.src='${basePath}/resources/images/icons/blue/icons-01.png'">
                        </div>
                        <div class="servertitle" title="<%=menu.getMenuname()%>" style="color:#FFFFFF;"> <!-- 服务ID -->
                            <a
                                    href="<%=menu.getMenupath()%>" target="_blank" style="color:#59b6df;"><%=menu.getMenuname()%>
                            </a>
                        </div>
                    </div>
                    <%}%>
                    <c:if test="${userid != 'admin'}">
                        <div class="server serverMore" style="width: 153px;" o="serverContent">
                            <div class="servericon" style="background: #0000FE;">
                                <img src="${basePath}/resources/images/icons/icons-05.png">
                            </div>
                            <div class="servertitle"
                                 style="top: 70px; color: white; font-size: 16px; text-indent: -10px;"> <!-- 服务ID -->
                                <span> 更多 </span>
                            </div>
                        </div>
                    </c:if>
                    <c:if test="${userid == 'admin'}">
                        <div class="server serverAddErect">
                            <div class="moreserver" o="serverContent">更多</div>
                            <div class="addserver" onclick="window.open('${basePath}/s/uc/se/i/${dyfwid}')">订阅</div>
                        </div>
                    </c:if>
                </div>
            </div>
            <div id="dyfw">
                <% for (int i = 0; i < dyfw.size(); i++) {
                    TSysMenu menu = dyfw.get(i);
                %>
                <div class="server" menuid="<%=menu.getMenuid()%>" name="<%=menu.getMenuname()%>"
                     pmenuid="000603298" pmenuname="<%=menu.getMenuname()%>" filetype="normal"
                     style="border:1px solid #00cc00;background-color:#fff;  <%if (i > 5) {%>display:none;<%}%>">
                    <div class="servericon"
                         onclick="window.open('<%=menu.getMenupath()%>')"><img
                            src="${basePath}/resources/images/icons/green/<%=menu.getTb()%>"
                            onerror="this.src='${basePath}/resources/images/icons/green/icons-01.png'">
                    </div>
                    <div class="servertitle" title="<%=menu.getMenuname()%>"> <!-- 服务ID -->
                        <a href="<%=menu.getMenupath()%>" target="_blank" style="color:#00cc00;"><%=menu.getMenuname()%>
                        </a></div>
                </div>
                <%}%>
                <div class="server serverAdd" style="width: 125px;margin-left: 20px;">
                    <div class="moreserver">更多</div>
                    <div class="addserver" onclick="window.open('${basePath}/s/uc/se/i/${dyfwid}')">订阅</div>
                </div>
            </div>
            <div class="rightMore" id="serverContent">
                <div class="tRDiv">
                    <span class="tRSpan">已订阅服务</span>
                    <span class="cRSpan closeSpan">关闭</span>
                </div>
                <div class="cRDiv">
                </div>
            </div>
        </div>
        <div id="contentBg"></div>
    </div>
    <jsp:include page="foot.jsp"/>
</div>
</body>
</html>
